{php $nowtime=date('Y-m-d',time());}
{if $_G['member']['usergroup']==1}
<div class="navbar navbar-inverse">
  <div class="navbar-inner">
   <a href="#" class="visible-phone"><i class="icon icon-th-list"></i> 常见元素</a>
  <ul class="nav">
    <li><a href="__ROOT__/"><i class="icon icon-home"></i> <span>首页</span></a></li>
    <li class="dropdown"> 
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 用户管理</span></a>
      <ul class="dropdown-menu">
        <li><a href="{url('member/add')}">添加用户</a></li>
        <li><a href="{url('member/index')}">用户列表</a></li>              
      </ul>
    </li>
    <li class="dropdown"> 
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 房源库管理</span></a>
      <ul class="dropdown-menu">        
         <li><a href="{url('estate/add',array('type'=>1))}">单条添加出租房源</a></li>         
         <li><a href="{url('estate/index',array('type'=>1))}?start={$nowtime}&end={$nowtime}">出租房源列表</a></li>
         <li><a href="{url('estate/add',array('type'=>2))}">单条添加出售房源</a></li>
         <!--<li><a href="{url('estate/import',array('type'=>2))}">出售房源导入</a></li>-->
         <li><a href="{url('estate/index',array('type'=>2))}?start={$nowtime}&end={$nowtime}">出售房源列表</a></li>
         <li><a href="{url('estate/import',array('type'=>1))}">出租/出售房源导入</a></li>
         <li><a href="{url('estate/search')}">下载房源</a></li>
      </ul>
    </li>
    
    <li class="dropdown"> 
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 房屋属性管理</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('property/index','model=apartment')}">户型数据</a></li>
         <li><a href="{url('property/index','model=structure')}">结构数据</a></li>
         <li><a href="{url('property/index','model=certificate')}">权属数据</a></li>
         <li><a href="{url('property/index','model=decoration')}">装修数据</a></li>
         <li><a href="{url('property/index','model=address')}">搜索地址</a></li>
      </ul>
    </li>
     <li class="dropdown"> 
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 权限管理</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('group/index')}">用户组</a></li>
         <li><a href="{url('group/node')}">功能模块</a></li>         
      </ul>
    </li>     
    <li> 
     <a href="{url('estate/statistics')}"><i class="icon icon-th-list"></i> <span> 数据统计</span></a>      
    </li>  
    <li class="dropdown"> 
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 商会通知</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('news/index')}">公告列表</a></li>
         <li><a href="{url('news/add')}">添加公告</a></li>
      </ul>
    </li>
    <li class="dropdown"> 
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 广告管理</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('guanggao/index',array('weizhi'=>1) )}">左侧广告列表</a></li>
         <li><a href="{url('guanggao/index',array('weizhi'=>2) )}">右侧广告列表</a></li>
         <li><a href="{url('guanggao/index',array('weizhi'=>3) )}">底部广告列表</a></li>
         <li><a href="{url('guanggao/add')}">添加广告</a></li>
      </ul>
    </li>
  </ul>
  <ul class="nav pull-right">    
    <li><a title="" href="#"><i class="icon icon-user"></i> <span class="text">{$_G['member']['username']}会员</span></a></li>
    <li><a title="" href="{url('index/logout')}"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
    <li><a title="" href="javascript:;"><i class="icon icon-share-alt"></i> <span class="text">{date('Y-m-d',time())}</span></a></li>
  </ul>
</div>
</div>
{else}
<div class="navbar navbar-inverse">
  <div class="navbar-inner">
   <a href="#" class="visible-phone"><i class="icon icon-th-list"></i> 常见元素</a>
  <ul class="nav">
     <li><a href="__ROOT__/"><i class="icon icon-home"></i> <span>首页</span></a></li>   
     
     <li class="dropdown"> 
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 房源库</span></a>
      <ul class="dropdown-menu">
      <li><a href="{url('userestate/index',array('type'=>1))}">出租房源列表</a></li>
     	 <li><a href="{url('userestate/index',array('type'=>2))}">出售房源列表</a></li> 
     	 <!--<li><a href="{url('userestate/index',array('type'=>1))}?start={$nowtime}&end={$nowtime}">出租房源列表</a></li>
     	 <li><a href="{url('userestate/index',array('type'=>2))}?start={$nowtime}&end={$nowtime}">出售房源列表</a></li> -->     
      </ul>
     </li>      
     <li class="dropdown"> 
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 发布房源</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('userestate/add',array('type'=>1))}">手工添加出租房源</a></li>     	  
     	 <li><a href="{url('userestate/add',array('type'=>2))}">手工添加出售房源</a></li>     	 
     	 <li><a href="{url('userestate/import',array('type'=>1))}">批量导入出租/出售房源</a></li>
     	 <!--<li><a href="{url('userestate/import',array('type'=>2))}">出售房源导入</a></li>  -->           
      </ul>
     </li>   
     <li><a href="{url('userestate/search')}"><i class="icon icon-th-list"></i> <span>房源下载</span></a></li>
     <li class="dropdown"> 
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 个人房源管理</span></a>
      <ul class="dropdown-menu">
     	 <li><a href="{url('userestate/today',array('type'=>1,))}">今日出租房源</a></li>  
     	 <li><a href="{url('userestate/today',array('type'=>2,))}">今日出售房源</a></li>    
     	 <li><a href="{url('userestate/index',array('type'=>1,'netid'=>$_G['member']['username'],'op'=>'old'))}">以往出租房源</a></li>     	 
     	 <li><a href="{url('userestate/index',array('type'=>2,'netid'=>$_G['member']['username'],'op'=>'old'))}">以往出售房源</a></li>            
      </ul>
     </li>   
     
     <li class="dropdown"> 
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon icon-th-list"></i> <span> 个人设置</span></a>
      <ul class="dropdown-menu">
         <li><a href="{url('member/edit')}">个人资料</a></li>
         <li><a href="{url('member/password')}">修改密码</a></li>         
      </ul>
     </li>   
     
     <li> 
     <a href="{url('news/index')}"><i class="icon icon-th-list"></i> <span> 商会通知</span></a>      
    </li>
  </ul>
  <ul class="nav pull-right">    
    <li><a title="" href="#"><i class="icon icon-user"></i> <span class="text">{$_G['member']['username']}会员</span></a></li>
    <li><a title="" href="{url('index/logout')}"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
    <li><a title="" href="javascript:;"><i class="icon icon-share-alt"></i> <span class="text">{date('Y-m-d',time())}</span></a></li>
  </ul>
</div>
</div>
{/if}
